home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol04 / 02a / mdi / colors.h < prev    next >
Text File  |  1988-12-06  |  2KB  |  90 lines

  1. /*
  2.  * COLORS.H - Include for COLORS program
  3.  *
  4.  * LANGUAGE      : Microsoft C5.1
  5.  * MODEL         : medium
  6.  * ENVIRONMENT   : Microsoft Windows 2.1 SDK
  7.  * STATUS        : operational
  8.  *
  9.  * Developed by:
  10.  *   Geoffrey Nicholls
  11.  *   Kevin P. Welch
  12.  *
  13.  * (C) Copyright 1988
  14.  * Eikon Systems, Inc.
  15.  * 989 E. Hillsdale Blvd, Suite 260
  16.  * Foster City  CA  94404
  17.  *
  18.  */
  19.  
  20. /* */
  21.  
  22. /*
  23.  *
  24.  * Resource file constants
  25.  *
  26.  */
  27.  
  28. /* Strings */
  29. #define  IDS_TITLE          1
  30. #define    IDS_MAINCLASS        2
  31. #define    IDS_COLORCLASS        3
  32.  
  33. /* Debugging menu choice */
  34. #define    IDM_DEBUG            0x100
  35.  
  36. /* File Menu Choices */
  37. #define    IDM_NEW                 0x101
  38. #define    IDM_OPEN                 0x102
  39. #define    IDM_SAVE                 0x103
  40. #define    IDM_SAVEAS             0x104
  41. #define    IDM_PRINT             0x105
  42. #define    IDM_ABOUT             0x106
  43. #define    IDM_EXIT                 0x107
  44.  
  45. /* Color Menu Choices */
  46. #define    IDM_0                    0x108
  47. #define    IDM_25                0x109
  48. #define    IDM_50                0x10a
  49. #define    IDM_75                0x10b
  50. #define    IDM_100                0x10c
  51.  
  52. /* New dialog box */
  53. #define    DLGNEW_RED            0x100
  54. #define    DLGNEW_GREEN        0x101
  55. #define    DLGNEW_BLUE            0x102
  56.  
  57. /* */
  58.  
  59. /*
  60.  *
  61.  * Window extra constants
  62.  *
  63.  */
  64.  
  65. #define    WE_COLOR                0
  66. #define    WE_SHADE                2
  67. #define    WE_EXTRA                4
  68.  
  69. #define    COLOR_RED            0
  70. #define    COLOR_GREEN            1
  71. #define    COLOR_BLUE            2
  72.  
  73. /* */
  74.  
  75. /*
  76.  *
  77.  * Function prototypes
  78.  *
  79.  */
  80.  
  81. int PASCAL                        WinMain( HANDLE, HANDLE, LPSTR, int );
  82. HWND                                MainInit( HANDLE, HANDLE, int );
  83. long FAR PASCAL                MainWndProc( HWND, unsigned, WORD, LONG );
  84. BOOL                                ColorInit( HANDLE );
  85. HWND                                ColorCreate( HWND, int );
  86. long FAR PASCAL                 ColorWndProc( HWND, unsigned, WORD, LONG );
  87. int FAR PASCAL                    MainDlgNew( HWND, unsigned, WORD, LONG );
  88. int FAR PASCAL                    MainDlgAbout( HWND, unsigned, WORD, LONG );
  89.  
  90.